package cuiying.rbac.service;

import cuiying.rbac.domain.dto.BaseDto;
import cuiying.rbac.domain.entity.BaseEntity;
import cuiying.rbac.domain.vo.Result;

/**
 * 业务层-通用业务接口
 *
 * @author 崔颖
 * @since 2025/6/1 21:44
 */
public interface IBaseService <Entity extends BaseEntity, Dto extends BaseDto>{
    boolean existsById(int id);
    Entity findById(int id);
    Result list();
    Result create(Dto dto);
    Result updata(Dto dto,int id);
}